package cn.yunhe.entity;

import java.io.Serializable;

public class User implements Serializable {
    private int id; // 标号
    private  String name; //用户名
    private  String password; // 密码
    private  String tel; //电话
    private  String username; //真实姓名
    private  int margin; //是否是管理员0为普通,1为管理员

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public User(String name, String password, String tel, String username, int margin) {
        this.name = name;
        this.password = password;
        this.tel = tel;
        this.username = username;
        this.margin = margin;
    }

    public User() {

    }

    public int getId() {

        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getMargin() {
        return margin;
    }

    public void setMargin(int margin) {
        this.margin = margin;
    }
}
